import configparser
import os

class ConfigUtils:
    def __init__(self, config_file_path=None):
        if not config_file_path:
            config_file_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), '../config/config.ini')
        self.config = configparser.ConfigParser()
        self.config.read(config_file_path, encoding='utf-8')
    
    def get_value(self, section, option):
        return self.config.get(section, option)
    
    def get_int(self, section, option):
        return self.config.getint(section, option)
    
    def get_boolean(self, section, option):
        return self.config.getboolean(section, option)

config = ConfigUtils()  